Einhugur macOS Bridge plugin.

EinhugurMacOSBridge.NSRunningApplication Class (desktop - console - web)

An object that can manipulate and provide information for a single instance of an app.

EinhugurCoreBridge.NSObject
   NSRunningApplication

class EinhugurMacOSBridge.NSRunningApplication

Constructors

NSRunningApplication (private) Private constructor.

Properties

ActivationPolicyIndicates the activation policy of the application.
ActiveIndicates whether the application is currently frontmost.
BundleIdentifierIndicates the CFBundleIdentifier of the application.
BundleURLIndicates the URL to the application's bundle.
ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
ExecutableArchitectureIndicates the executing processor architecture for the application.
ExecutableURLIndicates the URL to the application's executable.
FinishedLaunchingIndicates whether the receiver’s process has finished launching.
Handle (Inherited) Returns Integer handle to the native NSObject structure.
HiddenIndicates whether the application is currently hidden.
IconReturns the icon for the receiver’s application.
LaunchDateIndicates the date when the application was launched.
LocalizedNameIndicates the localized name of the application.
OwnsMenuBarReturns whether the application owns the current menu bar.
ProcessIdentifierIndicates the process identifier (pid) of the application.
TerminatedIndicates that the receiver’s application has terminated.

Methods

ActivateWithOptionsAttempts to activate the application using the specified options.
shared CastDoes deep cast on incoming NSObject to NSRunningApplication
shared CurrentApplicationReturns an NSRunningApplication representing this application.
ForceTerminateAttempts to force the receiver to quit.
shared FromIntegerPtrConstructs NSRunningApplication object from Integer handle coming from declares or 3rd party plugin.
HideAttempts to hide or the application.
shared IsNSRunningApplicationReturns true if the NSObject under the hood is NSRunningApplication or derived from NSRunningApplication.
Release (Inherited) Releases the NSObject.
Retain (Inherited) Retains the NSObject
shared RunningApplicationWithProcessIdentifierReturns the running application with the given process identifier, or nil if no application has that pid.
shared RunningApplicationsWithBundleIdentifierReturns an array of currently running applications with the specified bundle identifier.
TerminateAttempts to quit the receiver normally.
shared TerminateAutomaticallyTerminableApplicationsTerminates invisibly running applications as if triggered by system memory pressure.
UnhideAttempts to unhide or the application.

Enumerations

ActivationPolicyValuesEnum values for Activation policy.
ArchitectureValuesArchitecture enum values for the ExecutableArchitecture property on the NSRunningApplication class.

Constants

ActivationFlag_AllWindows = 1By default, activation brings only the main and key windows forward. If you specify NSApplicationActivateAllWindows, all of the application's windows are brought forward. This constant is used with the ActivateWithOptions method. Note that Zero for no options is also valid there.
ActivationFlag_IgnoringOtherApps = 2The application is activated regardless of the currently active app. This constant is used with the ActivateWithOptions method. Note that Zero for no options is also valid there.
Version = 5.0 (Inherited)

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit